// JavaScript Document
function add_new_LBRNCODE(){
		var vLBRNCODE = document.getElementById('LBRNCODE').value;	
		var LBRNCODElist = document.getElementById('LIST_LBRNCODE').value;
		var LBRNCODE_arr = LBRNCODElist.split('-');
		var stringLBRNCODE='';
		var num=0;
		for(i in LBRNCODE_arr){
			if (LBRNCODE_arr[i]==vLBRNCODE){
				num=1;
				break;
			}
		}
		if(num==0){
			stringLBRNCODE = vLBRNCODE;
			document.getElementById('LIST_LBRNCODE').value = document.getElementById('LIST_LBRNCODE').value + stringLBRNCODE;
		}
	}
	
	function delete_LBRNCODE(){
		var i;
		var num=0;
		var vLBRNCODE = document.getElementById('LBRNCODE').value;
		var LBRNCODElist = document.getElementById('LIST_LBRNCODE').value;
		var LBRNCODE_arr = LBRNCODElist.split('-');
		if(LBRNCODElist.replace('-','')==vLBRNCODE){
			document.getElementById('LIST_LBRNCODE').value='';
			num=1;
		}
		if(num==0){
			for(i in LBRNCODE_arr){
				if(LBRNCODE_arr[i]==vLBRNCODE){	
					LBRNCODElist = LBRNCODElist.replace(vLBRNCODE+'-','');
				}
			}
			document.getElementById('LIST_LBRNCODE').value = LBRNCODElist;
		}
	}
	
	function add_new_LBRNSUBBRN(){
		var vLBRNSUBBRN = document.getElementById('LBRNSUBBRN').value;	
		var LBRNSUBBRNlist = document.getElementById('LIST_LBRNSUBBRN').value;
		document.getElementById('LIST_LBRNCODE').value = '';
		var LBRNSUBBRN_arr = LBRNSUBBRNlist.split('-');
		var stringLBRNSUBBRN='';
		var num=0;
		for(i in LBRNSUBBRN_arr){
			if (LBRNSUBBRN_arr[i]==vLBRNSUBBRN){
				num=1;
				break;
			}
		}
		if(num==0){
			stringLBRNSUBBRN = vLBRNSUBBRN;
			document.getElementById('LIST_LBRNSUBBRN').value = document.getElementById('LIST_LBRNSUBBRN').value + stringLBRNSUBBRN;
		}
	}
	
	function delete_LBRNSUBBRN(){
		var i;
		var num=0;
		var vLBRNSUBBRN = document.getElementById('LBRNSUBBRN').value;
		var LBRNSUBBRNlist = document.getElementById('LIST_LBRNSUBBRN').value;
		var LBRNSUBBRN_arr = LBRNSUBBRNlist.split('-');
		if(LBRNSUBBRNlist.replace('-','')==vLBRNSUBBRN){
			document.getElementById('LIST_LBRNSUBBRN').value='';
			num=1;
		}
		if(num==0){
			for(i in LBRNSUBBRN_arr){
				if(LBRNSUBBRN_arr[i]==vLBRNSUBBRN){	
					LBRNSUBBRNlist = LBRNSUBBRNlist.replace(vLBRNSUBBRN+'-','');
				}
			}
			document.getElementById('LIST_LBRNSUBBRN').value = LBRNSUBBRNlist;
		}
	}